import request from '@/utils/request'

export function getList(data?: any) {
  return request({
    url: '/api/admin/get?adminget',
    method: 'post',
    data,
  })
}

export function doAdd(data: any) {
  return request({
    url: '/api/admin/set?adminset',
    method: 'post',
    data,
  })
}

export function doEdit(data: any) {
  return request({
    url: '/api/admin/update?adminupdate',
    method: 'post',
    data,
  })
}

export function doDelete(data: any) {
  return request({
    url: '/api/admin/delete?admindelete',
    method: 'post',
    data,
  })
}
